From 712ee46ba463aed09a024721b4b5ab10a0b56575 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 22 Dec 2003 04:14:33 +0000 Subject: [PATCH] change wfEscapeWikiText() to escape the pipe | character. This was breaking {{MSGNW:foo}} inside a wiki-syntax table. --- includes/GlobalFunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 5920efee8b..91959f410f 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -642,8 +642,8 @@ function wfCheckLimits( $deflimit = 50, $optionname = "rclimit" ) { function wfEscapeWikiText( $text ) { $text = str_replace( - array( '[', "'", 'ISBN ' , '://' , "\n=" ), - array( '[', ''', 'ISBN ', '://' , "\n=" ), + array( '[', '|', "'", 'ISBN ' , '://' , "\n=" ), + array( '[', '|', ''', 'ISBN ', '://' , "\n=" ), htmlspecialchars($text) ); return $text; } -- 2.20.1